home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Science⁄Math
/
VideoToolbox
/
VideoToolboxSources
/
DateString.c
< prev
next >
Wrap
Text File
|
1993-12-19
|
486b
|
19 lines
/*
DateString.c
returns a pointer to a string representing the time in a form suitable for
use as a unique filename extension, e.g. "89.06.25.01.59.59", that
sorts in chronological order.
HISTORY:
1989 dgp wrote it.
*/
#include "VideoToolbox.h"
char *DateString(unsigned long seconds)
{
DateTimeRec t;
static char dateString[26];
Secs2Date(seconds,&t);
sprintf(dateString,"%02d.%02d.%02d.%02d.%02d.%02d",t.year-1900,t.month,t.day,t.hour,t.minute,t.second);
return dateString;
}